using System;
using System.IO;

namespace dir
{
    internal class Worker
    {
        public static Worker Current
        {
            get { return new Worker(); }
        }

        public void Execute(ArgumentParser arguments)
        {
            using (var fs = new StreamWriter(arguments.OutputFilePath))
            {
                foreach (var file in Directory.GetFiles(".\\", "*.txt"))
                {
                    fs.Write(file + ";");
                }
            }
        }
    }
}